The JS SDK creates a new object per call, so queries are equal when they are of the same location and constraints.